import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Iterator;

import weibo4j.org.json.JSONException;
import weibo4j.org.json.JSONObject;

public class Example {
	public static void main(String[] args) throws IOException, JSONException {
		DataInputStream input = new DataInputStream(new FileInputStream(
				"data/data.txt"));

		String line = null;
		while (null != (line = input.readLine())) {
			JSONObject obj = new JSONObject(line);
			JSONObject jLabel = obj.getJSONObject("labels");
			String label = null;
			// 下面迭代的string都是label
			for (Iterator<String> iter = jLabel.keys(); iter.hasNext();) {
				label = iter.next();
			}

		}
	}
}
